-
-
Couldn't load subscription status.
- Fork 33.3k
gh-125259: Fix error notes removal in enum initialization #125647
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Thanks @mariosasko for the PR, and @ethanfurman for merging it 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
|
Sorry, @mariosasko and @ethanfurman, I could not cleanly backport this to |
…onGH-125647) (cherry picked from commit 34653bb) Co-authored-by: Mario Šaško <[email protected]>
|
GH-125858 is a backport of this pull request to the 3.13 branch. |
…onGH-125647) (cherry picked from commit 34653bb)
|
GH-125953 is a backport of this pull request to the 3.12 branch. |
…125647) (GH-125953) (cherry picked from commit 34653bb) Co-authored-by: Mario Šaško <[email protected]>
Delete the notes of errors thrown in enum class initialization instead of re-instantiating them (without notes), which might not always be possible.
TypeErrorwhen raising an exception inside the__init__method of an enum class #125259